<html>
 <head>
  <meta charset="utf-8"/>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
  <title>
   使用TextRank算法为文本生成关键字和摘要  | 数螺 | NAUT IDEA
  </title>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" rel="stylesheet"/>
  <link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
  <style type="text/css">
   #xmain img {
                  max-width: 100%;
                  display: block;
                  margin-top: 10px;
                  margin-bottom: 10px;
                }

                #xmain p {
                    line-height:150%;
                    font-size: 16px;
                    margin-top: 20px;
                }

                #xmain h2 {
                    font-size: 24px;
                }

                #xmain h3 {
                    font-size: 20px;
                }

                #xmain h4 {
                    font-size: 18px;
                }


                .header {
	           background-color: #0099ff;
	           color: #ffffff;
	           margin-bottom: 20px;
	        }

	        .header p {
                  margin: 0px;
                  padding: 10px 0;
                  display: inline-block;  
                  vertical-align: middle;
                  font-size: 16px;
               }

               .header a {
                 color: white;
               }

              .header img {
                 height: 25px;
              }
  </style>
  <script src="http://cdn.bootcss.com/jquery/3.0.0/jquery.min.js">
  </script>
  <script src="http://nautstatic-10007657.file.myqcloud.com/static/css/readability.min.js" type="text/javascript">
  </script>
  <script type="text/javascript">
   $(document).ready(function() {
                 var loc = document.location;
                 var uri = {
                  spec: "http://dataunion.org/8448.html",
                  host: "http://dataunion.org",
                  prePath: "http://dataunion.org",
                  scheme: "http",
                  pathBase: "http://dataunion.org/"
                 };
    
                 var documentClone = document.cloneNode(true);
                 var article = new Readability(uri, documentClone).parse();
     
                 document.getElementById("xmain").innerHTML = article.content;
                });
  </script>
  <!-- 1466460924: Accept with keywords: (title(0.6):关键字,算法,文本,数盟,社区, topn(0.4):词性,论文,记者,数盟,相似性,外套,社区,数据分析,结果,人工智能,关键词,关键字,关键,计算,文章,现身,节点,网页,公式,算法,重要性,集合,链接,行业资讯,短语,句子,单词,小写,归一化,文本).-->
 </head>
 <body onload="">
  <div class="header">
   <div class="container">
    <div class="row">
     <div class="col-xs-6 col-sm-6 text-left">
      <a href="/databee">
       <img src="http://nautidea-10007657.cos.myqcloud.com/logo_white.png"/>
      </a>
      <a href="/databee">
       <p>
        数螺
       </p>
      </a>
     </div>
     <div class="hidden-xs col-sm-6 text-right">
      <p>
       致力于数据科学的推广和知识传播
      </p>
     </div>
    </div>
   </div>
  </div>
  <div class="container text-center">
   <h1>
    使用TextRank算法为文本生成关键字和摘要
   </h1>
  </div>
  <div class="container" id="xmain">
   ﻿﻿
   <title>
    使用TextRank算法为文本生成关键字和摘要 | 数盟社区
   </title>
   <!-- All in One SEO Pack 2.2.7.6.2 by Michael Torbert of Semper Fi Web Design[32,70] -->
   <!-- /all in one seo pack -->
   <!--
<div align="center">
<a href="http://strata.oreilly.com.cn/hadoop-big-data-cn?cmp=mp-data-confreg-home-stcn16_dataunion_pc" target="_blank"><img src="http://dataunion.org/wp-content/uploads/2016/05/stratabj.jpg"/ ></a>
</div>
-->
   <header id="header-web">
    <div class="header-main">
     <hgroup class="logo">
      <h1>
       <a href="http://dataunion.org/" rel="home" title="数盟社区">
        <img src="http://dataunion.org/wp-content/themes/yzipi/images/logo.png"/>
       </a>
      </h1>
     </hgroup>
     <!--logo-->
     <nav class="header-nav">
      <ul class="menu" id="menu-%e4%b8%bb%e8%8f%9c%e5%8d%95">
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-71" id="menu-item-71">
        <a href="http://dataunion.org/category/events" title="events">
         活动
        </a>
        <ul class="sub-menu">
         <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-22457" id="menu-item-22457">
          <a href="http://dataunion.org/2016timeline">
           2016档期
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-22459" id="menu-item-22459">
          <a href="http://dataunion.org/category/parterc">
           合作会议
          </a>
         </li>
        </ul>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor menu-item-has-children menu-item-20869" id="menu-item-20869">
        <a href="http://dataunion.org/category/tech" title="articles">
         文章
        </a>
        <ul class="sub-menu">
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-20867" id="menu-item-20867">
          <a href="http://dataunion.org/category/tech/base" title="base">
           基础架构
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor current-menu-parent current-post-parent menu-item-3302" id="menu-item-3302">
          <a href="http://dataunion.org/category/tech/ai" title="ai">
           人工智能
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor current-menu-parent current-post-parent menu-item-3303" id="menu-item-3303">
          <a href="http://dataunion.org/category/tech/analysis" title="analysis">
           数据分析
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-21920" id="menu-item-21920">
          <a href="http://dataunion.org/category/tech/dm">
           数据挖掘
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-3314" id="menu-item-3314">
          <a href="http://dataunion.org/category/tech/viz" title="viz">
           可视化
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-3305" id="menu-item-3305">
          <a href="http://dataunion.org/category/tech/devl" title="devl">
           编程语言
          </a>
         </li>
        </ul>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-20876" id="menu-item-20876">
        <a href="http://dataunion.org/category/industry">
         行业
        </a>
        <ul class="sub-menu">
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-16328" id="menu-item-16328">
          <a href="http://dataunion.org/category/industry/case" title="case">
           行业应用
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-2112" id="menu-item-2112">
          <a href="http://dataunion.org/category/industry/demo" title="demo">
           Demo展示
          </a>
         </li>
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-21562" id="menu-item-21562">
          <a href="http://dataunion.org/category/industry/news">
           行业资讯
          </a>
         </li>
        </ul>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-311" id="menu-item-311">
        <a href="http://dataunion.org/category/sources" title="sources">
         资源
        </a>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-20870" id="menu-item-20870">
        <a href="http://dataunion.org/category/books" title="book">
         图书
        </a>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-21363" id="menu-item-21363">
        <a href="http://dataunion.org/category/training">
         课程
        </a>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-has-children menu-item-21853" id="menu-item-21853">
        <a href="http://dataunion.org/category/jobs">
         职位
        </a>
        <ul class="sub-menu">
         <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-22050" id="menu-item-22050">
          <a href="http://dataunion.org/category/career">
           职业规划
          </a>
         </li>
        </ul>
       </li>
      </ul>
     </nav>
     <!--header-nav-->
    </div>
   </header>
   <!--header-web-->
   <div id="main">
    <div id="soutab">
     <form action="http://dataunion.org/" class="search" method="get">
     </form>
    </div>
    <div id="container">
     <nav id="mbx">
      当前位置：
      <a href="http://dataunion.org">
       首页
      </a>
      &gt;
      <a href="http://dataunion.org/category/tech">
       文章
      </a>
      &gt;
      <a href="http://dataunion.org/category/tech/analysis">
       数据分析
      </a>
      &gt;  正文
     </nav>
     <!--mbx-->
     <article class="content">
      <header align="centre" class="contenttitle">
       <div class="mscc">
        <h1 class="mscctitle">
         <a href="http://dataunion.org/8448.html">
          使用TextRank算法为文本生成关键字和摘要
         </a>
        </h1>
        <address class="msccaddress ">
         <em>
          3,184 次阅读 -
         </em>
         <a href="http://dataunion.org/category/tech/analysis" rel="category tag">
          数据分析
         </a>
         ,
         <a href="http://dataunion.org/category/tech/ai" rel="category tag">
          人工智能
         </a>
        </address>
       </div>
      </header>
      <div class="content-text">
       <p>
        作者：
        <a href="http://www.letiantian.me/" title="Home">
         樂天
        </a>
       </p>
       <p>
        TextRank算法基于PageRank，用于为文本生成关键字和摘要。其论文是：
       </p>
       <blockquote>
        <p>
         Mihalcea R, Tarau P. TextRank: Bringing order into texts[C]. Association for Computational Linguistics, 2004.
        </p>
       </blockquote>
       <h2 id="pagerank">
        先从PageRank讲起
       </h2>
       <hr/>
       <p>
        在
        <a href="http://www.letiantian.me/2014-06-10-pagerank/">
         浅入浅出：PageRank算法
        </a>
        这篇博客中我做过简要的介绍，这里再补充一下。
       </p>
       <p>
        PageRank最开始用来计算网页的重要性。整个www可以看作一张有向图图，节点是网页。如果网页A存在到网页B的链接，那么有一条从网页A指向网页B的有向边。
       </p>
       <p>
        构造完图后，使用下面的公式：
       </p>
       <p>
        <img src="http://dataunion.org/wp-content/uploads/2015/01/pagerank01.png"/>
       </p>
       <p>
        <span class="MathJax" id="MathJax-Element-1-Frame">
         <span class="math" id="MathJax-Span-1">
          <span class="mrow" id="MathJax-Span-2">
           <span class="mi" id="MathJax-Span-3">
            S
           </span>
           <span class="mo" id="MathJax-Span-4">
            (
           </span>
           <span class="msubsup" id="MathJax-Span-5">
            <span class="mi" id="MathJax-Span-6">
             V
            </span>
            <span class="texatom" id="MathJax-Span-7">
             <span class="mrow" id="MathJax-Span-8">
              <span class="mi" id="MathJax-Span-9">
               i
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-10">
            )
           </span>
          </span>
         </span>
        </span>
        是网页i的中重要性（PR值）。d是阻尼系数，一般设置为0.85。
        <span class="MathJax" id="MathJax-Element-2-Frame">
         <span class="math" id="MathJax-Span-11">
          <span class="mrow" id="MathJax-Span-12">
           <span class="mi" id="MathJax-Span-13">
            I
           </span>
           <span class="mi" id="MathJax-Span-14">
            n
           </span>
           <span class="mo" id="MathJax-Span-15">
            (
           </span>
           <span class="msubsup" id="MathJax-Span-16">
            <span class="mi" id="MathJax-Span-17">
             V
            </span>
            <span class="texatom" id="MathJax-Span-18">
             <span class="mrow" id="MathJax-Span-19">
              <span class="mi" id="MathJax-Span-20">
               i
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-21">
            )
           </span>
          </span>
         </span>
        </span>
        是存在指向网页i的链接的网页集合。
        <span class="MathJax" id="MathJax-Element-3-Frame">
         <span class="math" id="MathJax-Span-22">
          <span class="mrow" id="MathJax-Span-23">
           <span class="mi" id="MathJax-Span-24">
            O
           </span>
           <span class="mi" id="MathJax-Span-25">
            u
           </span>
           <span class="mi" id="MathJax-Span-26">
            t
           </span>
           <span class="mo" id="MathJax-Span-27">
            (
           </span>
           <span class="msubsup" id="MathJax-Span-28">
            <span class="mi" id="MathJax-Span-29">
             V
            </span>
            <span class="texatom" id="MathJax-Span-30">
             <span class="mrow" id="MathJax-Span-31">
              <span class="mi" id="MathJax-Span-32">
               j
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-33">
            )
           </span>
          </span>
         </span>
        </span>
        是网页j中的链接存在的链接指向的网页的集合。
        <span class="MathJax" id="MathJax-Element-4-Frame">
         <span class="math" id="MathJax-Span-34">
          <span class="mrow" id="MathJax-Span-35">
           <span class="texatom" id="MathJax-Span-36">
            <span class="mrow" id="MathJax-Span-37">
             <span class="mo" id="MathJax-Span-38">
              |
             </span>
            </span>
           </span>
           <span class="mi" id="MathJax-Span-39">
            O
           </span>
           <span class="mi" id="MathJax-Span-40">
            u
           </span>
           <span class="mi" id="MathJax-Span-41">
            t
           </span>
           <span class="mo" id="MathJax-Span-42">
            (
           </span>
           <span class="msubsup" id="MathJax-Span-43">
            <span class="mi" id="MathJax-Span-44">
             V
            </span>
            <span class="texatom" id="MathJax-Span-45">
             <span class="mrow" id="MathJax-Span-46">
              <span class="mi" id="MathJax-Span-47">
               j
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-48">
            )
           </span>
           <span class="texatom" id="MathJax-Span-49">
            <span class="mrow" id="MathJax-Span-50">
             <span class="mo" id="MathJax-Span-51">
              |
             </span>
            </span>
           </span>
          </span>
         </span>
        </span>
        是集合中元素的个数。
       </p>
       <p>
        PageRank需要使用上面的公式多次迭代才能得到结果。初始时，可以设置每个网页的重要性为1。上面公式等号左边计算的结果是迭代后网页i的PR值，等号右边用到的PR值全是迭代前的。
       </p>
       <p>
        举个例子：
       </p>
       <p>
        <img src="http://dataunion.org/wp-content/uploads/2015/01/pagerank-021.png"/>
       </p>
       <p>
        上图表示了三张网页之间的链接关系，直觉上网页A最重要。可以得到下面的表：
       </p>
       <table border="1" cellpadding="2" cellspacing="0">
        <tbody>
         <tr>
          <td>
           结束\起始
          </td>
          <td>
           A
          </td>
          <td>
           B
          </td>
          <td>
           C
          </td>
         </tr>
         <tr>
          <td>
           A
          </td>
          <td>
           0
          </td>
          <td>
           1
          </td>
          <td>
           1
          </td>
         </tr>
         <tr>
          <td>
           B
          </td>
          <td>
           0
          </td>
          <td>
           0
          </td>
          <td>
           0
          </td>
         </tr>
         <tr>
          <td>
           C
          </td>
          <td>
           0
          </td>
          <td>
           0
          </td>
          <td>
           0
          </td>
         </tr>
        </tbody>
       </table>
       <p>
        横栏代表其实的节点，纵栏代表结束的节点。若两个节点间有链接关系，对应的值为1。
       </p>
       <p>
        根据公式，需要将每一竖栏归一化（每个元素/元素之和），归一化的结果是：
       </p>
       <table border="1" cellpadding="2" cellspacing="0">
        <tbody>
         <tr>
          <td>
           结束\起始
          </td>
          <td>
           A
          </td>
          <td>
           B
          </td>
          <td>
           C
          </td>
         </tr>
         <tr>
          <td>
           A
          </td>
          <td>
           0
          </td>
          <td>
           1
          </td>
          <td>
           1
          </td>
         </tr>
         <tr>
          <td>
           B
          </td>
          <td>
           0
          </td>
          <td>
           0
          </td>
          <td>
           0
          </td>
         </tr>
         <tr>
          <td>
           C
          </td>
          <td>
           0
          </td>
          <td>
           0
          </td>
          <td>
           0
          </td>
         </tr>
        </tbody>
       </table>
       <p>
        上面的结果构成矩阵M。我们用matlab迭代100次看看最后每个网页的重要性：
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57686af925365166969018" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          M = [&lt;span class="hljs-number"&gt;0&lt;/span&gt; &lt;span class="hljs-number"&gt;1&lt;/span&gt; &lt;span class="hljs-number"&gt;1&lt;/span&gt;  
    &lt;span class="hljs-number"&gt;0&lt;/span&gt; &lt;span class="hljs-number"&gt;0&lt;/span&gt; &lt;span class="hljs-number"&gt;0&lt;/span&gt;
    &lt;span class="hljs-number"&gt;0&lt;/span&gt; &lt;span class="hljs-number"&gt;0&lt;/span&gt; &lt;span class="hljs-number"&gt;0&lt;/span&gt;];

PR = [&lt;span class="hljs-number"&gt;1&lt;/span&gt;; &lt;span class="hljs-number"&gt;1&lt;/span&gt; ; &lt;span class="hljs-number"&gt;1&lt;/span&gt;];

&lt;span class="hljs-keyword"&gt;for&lt;/span&gt; iter = &lt;span class="hljs-number"&gt;1&lt;/span&gt;:&lt;span class="hljs-number"&gt;100&lt;/span&gt;  
    PR = &lt;span class="hljs-number"&gt;0&lt;/span&gt;.&lt;span class="hljs-number"&gt;15&lt;/span&gt; + &lt;span class="hljs-number"&gt;0&lt;/span&gt;.&lt;span class="hljs-number"&gt;85&lt;/span&gt;&lt;span class="hljs-variable"&gt;*M&lt;/span&gt;&lt;span class="hljs-variable"&gt;*PR&lt;/span&gt;;
    disp(iter);
    disp(PR);
end
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-57686af925365166969018-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925365166969018-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-57686af925365166969018-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925365166969018-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-57686af925365166969018-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925365166969018-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-57686af925365166969018-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925365166969018-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-57686af925365166969018-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925365166969018-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-57686af925365166969018-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925365166969018-12">
               12
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-57686af925365166969018-1">
               <span class="crayon-v">
                M
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925365166969018-2">
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925365166969018-3">
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925365166969018-4">
              </div>
              <div class="crayon-line" id="crayon-57686af925365166969018-5">
               <span class="crayon-v">
                PR
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925365166969018-6">
              </div>
              <div class="crayon-line" id="crayon-57686af925365166969018-7">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-st">
                for
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                iter
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                100
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925365166969018-8">
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                PR
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                15
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                85
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-variable"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                *
               </span>
               <span class="crayon-v">
                M
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-variable"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                *
               </span>
               <span class="crayon-v">
                PR
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925365166969018-9">
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                disp
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                iter
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925365166969018-10">
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                disp
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                PR
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925365166969018-11">
               <span class="crayon-st">
                end
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925365166969018-12">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0616 seconds] -->
       <p>
        运行结果（省略部分）：
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57686af92537c639032177" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          ......

    95

    0.4050
    0.1500
    0.1500

    96

    0.4050
    0.1500
    0.1500

    97

    0.4050
    0.1500
    0.1500

    98

    0.4050
    0.1500
    0.1500

    99

    0.4050
    0.1500
    0.1500

   100

    0.4050
    0.1500
    0.1500
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-16">
               16
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-17">
               17
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-18">
               18
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-19">
               19
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-20">
               20
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-21">
               21
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-22">
               22
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-23">
               23
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-24">
               24
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-25">
               25
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-26">
               26
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-27">
               27
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-28">
               28
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-29">
               29
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-30">
               30
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-31">
               31
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-32">
               32
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-33">
               33
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-34">
               34
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-35">
               35
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-36">
               36
              </div>
              <div class="crayon-num" data-line="crayon-57686af92537c639032177-37">
               37
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92537c639032177-38">
               38
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-57686af92537c639032177-1">
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-sy">
                .
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-2">
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-3">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                95
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-4">
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-5">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.4050
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-6">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.1500
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-7">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.1500
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-8">
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-9">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                96
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-10">
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-11">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.4050
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-12">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.1500
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-13">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.1500
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-14">
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-15">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                97
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-16">
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-17">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.4050
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-18">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.1500
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-19">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.1500
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-20">
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-21">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                98
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-22">
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-23">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.4050
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-24">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.1500
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-25">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.1500
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-26">
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-27">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                99
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-28">
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-29">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.4050
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-30">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.1500
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-31">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.1500
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-32">
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-33">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                100
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-34">
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-35">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.4050
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-36">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.1500
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af92537c639032177-37">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.1500
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92537c639032177-38">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0138 seconds] -->
       <p>
        最终A的PR值为0.4050，B和C的PR值为0.1500。
       </p>
       <p>
        如果把上面的有向边看作无向的（其实就是双向的），那么：
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57686af925383685772414" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          M = [&lt;span class="hljs-number"&gt;0&lt;/span&gt; &lt;span class="hljs-number"&gt;1&lt;/span&gt; &lt;span class="hljs-number"&gt;1&lt;/span&gt;  
    &lt;span class="hljs-number"&gt;0&lt;/span&gt;.&lt;span class="hljs-number"&gt;5&lt;/span&gt; &lt;span class="hljs-number"&gt;0&lt;/span&gt; &lt;span class="hljs-number"&gt;0&lt;/span&gt;
    &lt;span class="hljs-number"&gt;0&lt;/span&gt;.&lt;span class="hljs-number"&gt;5&lt;/span&gt; &lt;span class="hljs-number"&gt;0&lt;/span&gt; &lt;span class="hljs-number"&gt;0&lt;/span&gt;];

PR = [&lt;span class="hljs-number"&gt;1&lt;/span&gt;; &lt;span class="hljs-number"&gt;1&lt;/span&gt; ; &lt;span class="hljs-number"&gt;1&lt;/span&gt;];

&lt;span class="hljs-keyword"&gt;for&lt;/span&gt; iter = &lt;span class="hljs-number"&gt;1&lt;/span&gt;:&lt;span class="hljs-number"&gt;100&lt;/span&gt;  
    PR = &lt;span class="hljs-number"&gt;0&lt;/span&gt;.&lt;span class="hljs-number"&gt;15&lt;/span&gt; + &lt;span class="hljs-number"&gt;0&lt;/span&gt;.&lt;span class="hljs-number"&gt;85&lt;/span&gt;&lt;span class="hljs-variable"&gt;*M&lt;/span&gt;&lt;span class="hljs-variable"&gt;*PR&lt;/span&gt;;
    disp(iter);
    disp(PR);
end
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-57686af925383685772414-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925383685772414-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-57686af925383685772414-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925383685772414-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-57686af925383685772414-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925383685772414-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-57686af925383685772414-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925383685772414-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-57686af925383685772414-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925383685772414-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-57686af925383685772414-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925383685772414-12">
               12
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-57686af925383685772414-1">
               <span class="crayon-v">
                M
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925383685772414-2">
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                5
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925383685772414-3">
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                5
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925383685772414-4">
              </div>
              <div class="crayon-line" id="crayon-57686af925383685772414-5">
               <span class="crayon-v">
                PR
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                [
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-sy">
                ;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ]
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925383685772414-6">
              </div>
              <div class="crayon-line" id="crayon-57686af925383685772414-7">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-st">
                for
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                iter
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                :
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                100
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925383685772414-8">
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                PR
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                15
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                +
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                0
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                85
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-variable"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                *
               </span>
               <span class="crayon-v">
                M
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-variable"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                *
               </span>
               <span class="crayon-v">
                PR
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925383685772414-9">
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                disp
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                iter
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925383685772414-10">
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                disp
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                PR
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                ;
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925383685772414-11">
               <span class="crayon-st">
                end
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925383685772414-12">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0336 seconds] -->
       <p>
        运行结果（省略部分）：
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57686af92538a584941405" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          .....

    98

    1.4595
    0.7703
    0.7703

    99

    1.4595
    0.7703
    0.7703

   100

    1.4595
    0.7703
    0.7703
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-57686af92538a584941405-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92538a584941405-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-57686af92538a584941405-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92538a584941405-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-57686af92538a584941405-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92538a584941405-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-57686af92538a584941405-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92538a584941405-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-57686af92538a584941405-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92538a584941405-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-57686af92538a584941405-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92538a584941405-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-57686af92538a584941405-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92538a584941405-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-57686af92538a584941405-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92538a584941405-16">
               16
              </div>
              <div class="crayon-num" data-line="crayon-57686af92538a584941405-17">
               17
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92538a584941405-18">
               18
              </div>
              <div class="crayon-num" data-line="crayon-57686af92538a584941405-19">
               19
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af92538a584941405-20">
               20
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-57686af92538a584941405-1">
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-sy">
                .
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92538a584941405-2">
              </div>
              <div class="crayon-line" id="crayon-57686af92538a584941405-3">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                98
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92538a584941405-4">
              </div>
              <div class="crayon-line" id="crayon-57686af92538a584941405-5">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.4595
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92538a584941405-6">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.7703
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af92538a584941405-7">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.7703
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92538a584941405-8">
              </div>
              <div class="crayon-line" id="crayon-57686af92538a584941405-9">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                99
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92538a584941405-10">
              </div>
              <div class="crayon-line" id="crayon-57686af92538a584941405-11">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.4595
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92538a584941405-12">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.7703
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af92538a584941405-13">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.7703
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92538a584941405-14">
              </div>
              <div class="crayon-line" id="crayon-57686af92538a584941405-15">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                100
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92538a584941405-16">
              </div>
              <div class="crayon-line" id="crayon-57686af92538a584941405-17">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                1.4595
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92538a584941405-18">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.7703
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af92538a584941405-19">
               <span class="crayon-h">
               </span>
               <span class="crayon-cn">
                0.7703
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af92538a584941405-20">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0016 seconds] -->
       <p>
        依然能判断出A、B、C的重要性。
       </p>
       <h2 id="textrank">
        使用TextRank提取关键字
       </h2>
       <hr/>
       <p>
        将原文本拆分为句子，在每个句子中过滤掉停用词（可选），并只保留指定词性的单词（可选）。由此可以得到句子的集合和单词的集合。
       </p>
       <p>
        每个单词作为pagerank中的一个节点。设定窗口大小为
        <span class="MathJax" id="MathJax-Element-5-Frame">
         <span class="math" id="MathJax-Span-52">
          <span class="mrow" id="MathJax-Span-53">
           <span class="mi" id="MathJax-Span-54">
            k
           </span>
          </span>
         </span>
        </span>
        ，假设一个句子依次由下面的单词组成：
       </p>
       <p>
        <span class="MathJax" id="MathJax-Element-6-Frame">
         <span class="math" id="MathJax-Span-55">
          <span class="mrow" id="MathJax-Span-56">
           <span class="msubsup" id="MathJax-Span-57">
            <span class="mi" id="MathJax-Span-58">
             w
            </span>
            <span class="texatom" id="MathJax-Span-59">
             <span class="mrow" id="MathJax-Span-60">
              <span class="mn" id="MathJax-Span-61">
               1
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-62">
            ,
           </span>
           <span class="msubsup" id="MathJax-Span-63">
            <span class="mi" id="MathJax-Span-64">
             w
            </span>
            <span class="texatom" id="MathJax-Span-65">
             <span class="mrow" id="MathJax-Span-66">
              <span class="mn" id="MathJax-Span-67">
               2
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-68">
            ,
           </span>
           <span class="msubsup" id="MathJax-Span-69">
            <span class="mi" id="MathJax-Span-70">
             w
            </span>
            <span class="texatom" id="MathJax-Span-71">
             <span class="mrow" id="MathJax-Span-72">
              <span class="mn" id="MathJax-Span-73">
               3
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-74">
            ,
           </span>
           <span class="msubsup" id="MathJax-Span-75">
            <span class="mi" id="MathJax-Span-76">
             w
            </span>
            <span class="texatom" id="MathJax-Span-77">
             <span class="mrow" id="MathJax-Span-78">
              <span class="mn" id="MathJax-Span-79">
               4
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-80">
            ,
           </span>
           <span class="msubsup" id="MathJax-Span-81">
            <span class="mi" id="MathJax-Span-82">
             w
            </span>
            <span class="texatom" id="MathJax-Span-83">
             <span class="mrow" id="MathJax-Span-84">
              <span class="mn" id="MathJax-Span-85">
               5
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-86">
            ,
           </span>
           <span class="mo" id="MathJax-Span-87">
            .
           </span>
           <span class="mo" id="MathJax-Span-88">
            .
           </span>
           <span class="mo" id="MathJax-Span-89">
            .
           </span>
           <span class="mo" id="MathJax-Span-90">
            ,
           </span>
           <span class="msubsup" id="MathJax-Span-91">
            <span class="mi" id="MathJax-Span-92">
             w
            </span>
            <span class="texatom" id="MathJax-Span-93">
             <span class="mrow" id="MathJax-Span-94">
              <span class="mi" id="MathJax-Span-95">
               n
              </span>
             </span>
            </span>
           </span>
          </span>
         </span>
        </span>
       </p>
       <p>
        [
        <span class="MathJax" id="MathJax-Element-7-Frame">
         <span class="math" id="MathJax-Span-96">
          <span class="mrow" id="MathJax-Span-97">
           <span class="msubsup" id="MathJax-Span-98">
            <span class="mi" id="MathJax-Span-99">
             w
            </span>
            <span class="texatom" id="MathJax-Span-100">
             <span class="mrow" id="MathJax-Span-101">
              <span class="mn" id="MathJax-Span-102">
               1
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-103">
            ,
           </span>
           <span class="msubsup" id="MathJax-Span-104">
            <span class="mi" id="MathJax-Span-105">
             w
            </span>
            <span class="texatom" id="MathJax-Span-106">
             <span class="mrow" id="MathJax-Span-107">
              <span class="mn" id="MathJax-Span-108">
               2
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-109">
            ,
           </span>
           <span class="mo" id="MathJax-Span-110">
            .
           </span>
           <span class="mo" id="MathJax-Span-111">
            .
           </span>
           <span class="mo" id="MathJax-Span-112">
            .
           </span>
           <span class="mo" id="MathJax-Span-113">
            ,
           </span>
           <span class="msubsup" id="MathJax-Span-114">
            <span class="mi" id="MathJax-Span-115">
             w
            </span>
            <span class="texatom" id="MathJax-Span-116">
             <span class="mrow" id="MathJax-Span-117">
              <span class="mi" id="MathJax-Span-118">
               k
              </span>
             </span>
            </span>
           </span>
          </span>
         </span>
        </span>
        ]、[
        <span class="MathJax" id="MathJax-Element-8-Frame">
         <span class="math" id="MathJax-Span-119">
          <span class="mrow" id="MathJax-Span-120">
           <span class="msubsup" id="MathJax-Span-121">
            <span class="mi" id="MathJax-Span-122">
             w
            </span>
            <span class="texatom" id="MathJax-Span-123">
             <span class="mrow" id="MathJax-Span-124">
              <span class="mn" id="MathJax-Span-125">
               2
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-126">
            ,
           </span>
           <span class="msubsup" id="MathJax-Span-127">
            <span class="mi" id="MathJax-Span-128">
             w
            </span>
            <span class="texatom" id="MathJax-Span-129">
             <span class="mrow" id="MathJax-Span-130">
              <span class="mn" id="MathJax-Span-131">
               3
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-132">
            ,
           </span>
           <span class="mo" id="MathJax-Span-133">
            .
           </span>
           <span class="mo" id="MathJax-Span-134">
            .
           </span>
           <span class="mo" id="MathJax-Span-135">
            .
           </span>
           <span class="mo" id="MathJax-Span-136">
            ,
           </span>
           <span class="msubsup" id="MathJax-Span-137">
            <span class="mi" id="MathJax-Span-138">
             w
            </span>
            <span class="texatom" id="MathJax-Span-139">
             <span class="mrow" id="MathJax-Span-140">
              <span class="mi" id="MathJax-Span-141">
               k
              </span>
              <span class="mo" id="MathJax-Span-142">
               +
              </span>
              <span class="mn" id="MathJax-Span-143">
               1
              </span>
             </span>
            </span>
           </span>
          </span>
         </span>
        </span>
        ]、[
        <span class="MathJax" id="MathJax-Element-9-Frame">
         <span class="math" id="MathJax-Span-144">
          <span class="mrow" id="MathJax-Span-145">
           <span class="msubsup" id="MathJax-Span-146">
            <span class="mi" id="MathJax-Span-147">
             w
            </span>
            <span class="texatom" id="MathJax-Span-148">
             <span class="mrow" id="MathJax-Span-149">
              <span class="mn" id="MathJax-Span-150">
               3
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-151">
            ,
           </span>
           <span class="msubsup" id="MathJax-Span-152">
            <span class="mi" id="MathJax-Span-153">
             w
            </span>
            <span class="texatom" id="MathJax-Span-154">
             <span class="mrow" id="MathJax-Span-155">
              <span class="mn" id="MathJax-Span-156">
               4
              </span>
             </span>
            </span>
           </span>
           <span class="mo" id="MathJax-Span-157">
            ,
           </span>
           <span class="mo" id="MathJax-Span-158">
            .
           </span>
           <span class="mo" id="MathJax-Span-159">
            .
           </span>
           <span class="mo" id="MathJax-Span-160">
            .
           </span>
           <span class="mo" id="MathJax-Span-161">
            ,
           </span>
           <span class="msubsup" id="MathJax-Span-162">
            <span class="mi" id="MathJax-Span-163">
             w
            </span>
            <span class="texatom" id="MathJax-Span-164">
             <span class="mrow" id="MathJax-Span-165">
              <span class="mi" id="MathJax-Span-166">
               k
              </span>
              <span class="mo" id="MathJax-Span-167">
               +
              </span>
              <span class="mn" id="MathJax-Span-168">
               2
              </span>
             </span>
            </span>
           </span>
          </span>
         </span>
        </span>
        ]等都是一个窗口。在一个窗口中的任两个单词对应的节点之间存在一个无向无权的边。
       </p>
       <p>
        基于上面构成图，可以计算出每个单词节点的重要性。最重要的若干单词可以作为关键词。
       </p>
       <h2 id="textrank">
        使用TextRank提取关键短语
       </h2>
       <hr/>
       <p>
        参照“使用TextRank提取关键词”提取出若干关键词。若原文本中存在若干个关键词相邻的情况，那么这些关键词可以构成一个关键短语。
       </p>
       <p>
        例如，在一篇介绍“支持向量机”的文章中，可以找到三个关键词支持、向量、机，通过关键短语提取，可以得到支持向量机。 使用TextRank提取摘要
       </p>
       <p>
        将每个句子看成图中的一个节点，若两个句子之间有相似性，认为对应的两个节点之间有一个无向有权边，权值是相似度。
       </p>
       <p>
        通过pagerank算法计算得到的重要性最高的若干句子可以当作摘要。
       </p>
       <p>
        论文中使用下面的公式计算两个句子Si和Sj的相似度：
       </p>
       <p>
        <img src="http://dataunion.org/wp-content/uploads/2015/01/textrank-01.png"/>
       </p>
       <p>
        分子是在两个句子中都出现的单词的数量。|Si|是句子i的单词数。
       </p>
       <p>
        由于是有权图，PageRank公式略做修改：
        <img src="http://dataunion.org/wp-content/uploads/2015/01/textrank-02.png"/>
       </p>
       <h2 id="textrank">
        实现TextRank
       </h2>
       <hr/>
       <p>
        因为要用测试多种情况，所以自己实现了一个基于Python 2.7的TextRank针对中文文本的库TextRank4ZH。位于：
       </p>
       <p>
        <a href="https://github.com/someus/TextRank4ZH">
         https://github.com/someus/TextRank4ZH
        </a>
       </p>
       <p>
        下面是一个例子：
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57686af925398925792476" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          &lt;span class="hljs-comment"&gt;#-*- encoding:utf-8 -*-&lt;/span&gt;

&lt;span class="hljs-keyword"&gt;import&lt;/span&gt; codecs  
&lt;span class="hljs-keyword"&gt;from&lt;/span&gt; textrank4zh &lt;span class="hljs-keyword"&gt;import&lt;/span&gt; TextRank4Keyword, TextRank4Sentence

text = codecs.open(&lt;span class="hljs-string"&gt;'./text/01.txt'&lt;/span&gt;, &lt;span class="hljs-string"&gt;'r'&lt;/span&gt;, &lt;span class="hljs-string"&gt;'utf-8'&lt;/span&gt;).read()  
tr4w = TextRank4Keyword(stop_words_file=&lt;span class="hljs-string"&gt;'./stopword.data'&lt;/span&gt;)  &lt;span class="hljs-comment"&gt;# 导入停止词&lt;/span&gt;

&lt;span class="hljs-comment"&gt;#使用词性过滤，文本小写，窗口为2&lt;/span&gt;
tr4w.train(text=text, speech_tag_filter=&lt;span class="hljs-keyword"&gt;True&lt;/span&gt;, lower=&lt;span class="hljs-keyword"&gt;True&lt;/span&gt;, window=&lt;span class="hljs-number"&gt;2&lt;/span&gt;)  

&lt;span class="hljs-keyword"&gt;print&lt;/span&gt; &lt;span class="hljs-string"&gt;'关键词：'&lt;/span&gt;  
&lt;span class="hljs-comment"&gt;# 20个关键词且每个的长度最小为1&lt;/span&gt;
&lt;span class="hljs-keyword"&gt;print&lt;/span&gt; &lt;span class="hljs-string"&gt;'/'&lt;/span&gt;.join(tr4w.get_keywords(&lt;span class="hljs-number"&gt;20&lt;/span&gt;, word_min_len=&lt;span class="hljs-number"&gt;1&lt;/span&gt;))  

&lt;span class="hljs-keyword"&gt;print&lt;/span&gt; &lt;span class="hljs-string"&gt;'关键短语：'&lt;/span&gt;  
&lt;span class="hljs-comment"&gt;# 20个关键词去构造短语，短语在原文本中出现次数最少为2&lt;/span&gt;
&lt;span class="hljs-keyword"&gt;print&lt;/span&gt; &lt;span class="hljs-string"&gt;'/'&lt;/span&gt;.join(tr4w.get_keyphrases(keywords_num=&lt;span class="hljs-number"&gt;20&lt;/span&gt;, min_occur_num= &lt;span class="hljs-number"&gt;2&lt;/span&gt;))  

tr4s = TextRank4Sentence(stop_words_file=&lt;span class="hljs-string"&gt;'./stopword.data'&lt;/span&gt;)

&lt;span class="hljs-comment"&gt;# 使用词性过滤，文本小写，使用words_all_filters生成句子之间的相似性&lt;/span&gt;
tr4s.train(text=text, speech_tag_filter=&lt;span class="hljs-keyword"&gt;True&lt;/span&gt;, lower=&lt;span class="hljs-keyword"&gt;True&lt;/span&gt;, source = &lt;span class="hljs-string"&gt;'all_filters'&lt;/span&gt;)

&lt;span class="hljs-keyword"&gt;print&lt;/span&gt; &lt;span class="hljs-string"&gt;'摘要：'&lt;/span&gt;  
&lt;span class="hljs-keyword"&gt;print&lt;/span&gt; &lt;span class="hljs-string"&gt;'\n'&lt;/span&gt;.join(tr4s.get_key_sentences(num=&lt;span class="hljs-number"&gt;3&lt;/span&gt;)) &lt;span class="hljs-comment"&gt;# 重要性最高的三个句子  &lt;/span&gt;
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-57686af925398925792476-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-9">
               9
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-10">
               10
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-11">
               11
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-12">
               12
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-13">
               13
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-14">
               14
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-15">
               15
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-16">
               16
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-17">
               17
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-18">
               18
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-19">
               19
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-20">
               20
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-21">
               21
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-22">
               22
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-23">
               23
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-24">
               24
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-25">
               25
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af925398925792476-26">
               26
              </div>
              <div class="crayon-num" data-line="crayon-57686af925398925792476-27">
               27
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-57686af925398925792476-1">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-comment"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-p">
                #-*- encoding:utf-8 -*-&lt;/span&gt;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-2">
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-3">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-v">
                import
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                codecs
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-4">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-v">
                from
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                textrank4zh
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-v">
                import
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                TextRank4Keyword
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                TextRank4Sentence
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-5">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-6">
               <span class="crayon-v">
                text
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                codecs
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                open
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-string"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-s">
                './text/01.txt'
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-string"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-s">
                'r'
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-string"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-s">
                'utf-8'
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                read
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-7">
               <span class="crayon-v">
                tr4w
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                TextRank4Keyword
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                stop_words_file
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-string"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-s">
                './stopword.data'
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-comment"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-p">
                # 导入停止词&lt;/span&gt;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-8">
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-9">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-comment"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-p">
                #使用词性过滤，文本小写，窗口为2&lt;/span&gt;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-10">
               <span class="crayon-v">
                tr4w
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                train
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                text
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-v">
                text
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                speech_tag_filter
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-t">
                True
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                lower
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-t">
                True
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                window
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                2
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-11">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-12">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-v">
                print
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-string"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-s">
                '关键词：'
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-13">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-comment"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-p">
                # 20个关键词且每个的长度最小为1&lt;/span&gt;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-14">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-v">
                print
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-string"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-s">
                '/'
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                join
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                tr4w
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                get_keywords
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                20
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                word_min_len
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-15">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-16">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-v">
                print
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-string"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-s">
                '关键短语：'
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-17">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-comment"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-p">
                # 20个关键词去构造短语，短语在原文本中出现次数最少为2&lt;/span&gt;
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-18">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-v">
                print
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-string"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-s">
                '/'
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                join
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                tr4w
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                get_keyphrases
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                keywords_num
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                20
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                min_occur_num
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                2
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-19">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-20">
               <span class="crayon-v">
                tr4s
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-e">
                TextRank4Sentence
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                stop_words_file
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-string"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-s">
                './stopword.data'
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-21">
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-22">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-comment"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-p">
                # 使用词性过滤，文本小写，使用words_all_filters生成句子之间的相似性&lt;/span&gt;
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-23">
               <span class="crayon-v">
                tr4s
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                train
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                text
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-v">
                text
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                speech_tag_filter
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-t">
                True
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                lower
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-t">
                True
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                ,
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-v">
                source
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-string"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-s">
                'all_filters'
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                )
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-24">
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-25">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-v">
                print
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-string"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-s">
                '摘要：'
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af925398925792476-26">
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-keyword"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-v">
                print
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-string"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-s">
                '\n'
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                join
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                tr4s
               </span>
               <span class="crayon-sy">
                .
               </span>
               <span class="crayon-e">
                get_key_sentences
               </span>
               <span class="crayon-sy">
                (
               </span>
               <span class="crayon-v">
                num
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                3
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-comment"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-p">
                # 重要性最高的三个句子  &lt;/span&gt;
               </span>
              </div>
              <div class="crayon-line" id="crayon-57686af925398925792476-27">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0582 seconds] -->
       <p>
        运行结果如下：
       </p>
       <!-- Crayon Syntax Highlighter v_2.7.2_beta -->
       <div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" data-settings=" minimize scroll-mouseover" id="crayon-57686af9253a5287530702" style=" margin-top: 12px; margin-bottom: 12px; font-size: 12px !important; line-height: 15px !important;">
        <div class="crayon-toolbar" data-settings=" mouseover overlay hide delay" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
         <span class="crayon-title">
         </span>
         <div class="crayon-tools" style="font-size: 12px !important;height: 18px !important; line-height: 18px !important;">
          <div class="crayon-button crayon-nums-button" title="切换是否显示行编号">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-plain-button" title="纯文本显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-wrap-button" title="切换自动换行">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-expand-button" title="点击展开代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-copy-button" title="复制代码">
           <div class="crayon-button-icon">
           </div>
          </div>
          <div class="crayon-button crayon-popup-button" title="在新窗口中显示代码">
           <div class="crayon-button-icon">
           </div>
          </div>
         </div>
        </div>
        <div class="crayon-info" style="min-height: 16.8px !important; line-height: 16.8px !important;">
        </div>
        <div class="crayon-plain-wrap">
         <textarea class="crayon-plain print-no" data-settings="dblclick" readonly="" style="-moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4; font-size: 12px !important; line-height: 15px !important;" wrap="soft">
          关键词：
媒体&lt;span class="hljs-regexp"&gt;/高圆圆/&lt;/span&gt;微&lt;span class="hljs-regexp"&gt;/宾客/&lt;/span&gt;赵又廷&lt;span class="hljs-regexp"&gt;/答谢/&lt;/span&gt;谢娜&lt;span class="hljs-regexp"&gt;/现身/&lt;/span&gt;记者&lt;span class="hljs-regexp"&gt;/新人/&lt;/span&gt;北京&lt;span class="hljs-regexp"&gt;/博/&lt;/span&gt;展示&lt;span class="hljs-regexp"&gt;/捧场/&lt;/span&gt;礼物&lt;span class="hljs-regexp"&gt;/张杰/&lt;/span&gt;当晚&lt;span class="hljs-regexp"&gt;/戴/&lt;/span&gt;酒店/外套
关键短语：
微博
摘要：
中新网北京&lt;span class="hljs-number"&gt;12&lt;/span&gt;月&lt;span class="hljs-number"&gt;1&lt;/span&gt;日电(记者 张曦) &lt;span class="hljs-number"&gt;30&lt;/span&gt;日晚，高圆圆和赵又廷在京举行答谢宴，诸多明星现身捧场，其中包括张杰(微博)、谢娜(微博)夫妇、何炅(微博)、蔡康永(微博)、徐克、张凯丽、黄轩(微博)等
高圆圆身穿粉色外套，看到大批记者在场露出娇羞神色，赵又廷则戴着鸭舌帽，十分淡定，两人快步走进电梯，未接受媒体采访
记者了解到，出席高圆圆、赵又廷答谢宴的宾客近百人，其中不少都是女方的高中同学
         </textarea>
        </div>
        <div class="crayon-main" style="">
         <table class="crayon-table">
          <tbody>
           <tr class="crayon-row">
            <td class="crayon-nums " data-settings="show">
             <div class="crayon-nums-content" style="font-size: 12px !important; line-height: 15px !important;">
              <div class="crayon-num" data-line="crayon-57686af9253a5287530702-1">
               1
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af9253a5287530702-2">
               2
              </div>
              <div class="crayon-num" data-line="crayon-57686af9253a5287530702-3">
               3
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af9253a5287530702-4">
               4
              </div>
              <div class="crayon-num" data-line="crayon-57686af9253a5287530702-5">
               5
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af9253a5287530702-6">
               6
              </div>
              <div class="crayon-num" data-line="crayon-57686af9253a5287530702-7">
               7
              </div>
              <div class="crayon-num crayon-striped-num" data-line="crayon-57686af9253a5287530702-8">
               8
              </div>
              <div class="crayon-num" data-line="crayon-57686af9253a5287530702-9">
               9
              </div>
             </div>
            </td>
            <td class="crayon-code">
             <div class="crayon-pre" style="font-size: 12px !important; line-height: 15px !important; -moz-tab-size:4; -o-tab-size:4; -webkit-tab-size:4; tab-size:4;">
              <div class="crayon-line" id="crayon-57686af9253a5287530702-1">
               关键词：
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af9253a5287530702-2">
               媒体
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-regexp"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                /
               </span>
               高圆圆
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               微
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-regexp"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                /
               </span>
               宾客
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               赵又廷
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-regexp"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                /
               </span>
               答谢
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               谢娜
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-regexp"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                /
               </span>
               现身
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               记者
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-regexp"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                /
               </span>
               新人
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               北京
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-regexp"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                /
               </span>
               博
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               展示
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-regexp"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                /
               </span>
               捧场
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               礼物
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-regexp"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                /
               </span>
               张杰
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               当晚
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-regexp"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-o">
                /
               </span>
               戴
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               酒店
               <span class="crayon-o">
                /
               </span>
               外套
              </div>
              <div class="crayon-line" id="crayon-57686af9253a5287530702-3">
               关键短语：
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af9253a5287530702-4">
               微博
              </div>
              <div class="crayon-line" id="crayon-57686af9253a5287530702-5">
               摘要：
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af9253a5287530702-6">
               中新网北京
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                12
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               月
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                1
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               日电
               <span class="crayon-sy">
                (
               </span>
               记者
               <span class="crayon-h">
               </span>
               张曦
               <span class="crayon-sy">
                )
               </span>
               <span class="crayon-h">
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-e">
                span
               </span>
               <span class="crayon-t">
                class
               </span>
               <span class="crayon-o">
                =
               </span>
               <span class="crayon-s">
                "hljs-number"
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               <span class="crayon-cn">
                30
               </span>
               <span class="crayon-o">
                &lt;
               </span>
               <span class="crayon-o">
                /
               </span>
               <span class="crayon-v">
                span
               </span>
               <span class="crayon-o">
                &gt;
               </span>
               日晚，高圆圆和赵又廷在京举行答谢宴，诸多明星现身捧场，其中包括张杰
               <span class="crayon-sy">
                (
               </span>
               微博
               <span class="crayon-sy">
                )
               </span>
               、谢娜
               <span class="crayon-sy">
                (
               </span>
               微博
               <span class="crayon-sy">
                )
               </span>
               夫妇、何炅
               <span class="crayon-sy">
                (
               </span>
               微博
               <span class="crayon-sy">
                )
               </span>
               、蔡康永
               <span class="crayon-sy">
                (
               </span>
               微博
               <span class="crayon-sy">
                )
               </span>
               、徐克、张凯丽、黄轩
               <span class="crayon-sy">
                (
               </span>
               微博
               <span class="crayon-sy">
                )
               </span>
               等
              </div>
              <div class="crayon-line" id="crayon-57686af9253a5287530702-7">
               高圆圆身穿粉色外套，看到大批记者在场露出娇羞神色，赵又廷则戴着鸭舌帽，十分淡定，两人快步走进电梯，未接受媒体采访
              </div>
              <div class="crayon-line crayon-striped-line" id="crayon-57686af9253a5287530702-8">
               记者了解到，出席高圆圆、赵又廷答谢宴的宾客近百人，其中不少都是女方的高中同学
              </div>
              <div class="crayon-line" id="crayon-57686af9253a5287530702-9">
              </div>
             </div>
            </td>
           </tr>
          </tbody>
         </table>
        </div>
       </div>
       <!-- [Format Time: 0.0259 seconds] -->
       <p>
        另外，
        <a href="https://github.com/fxsjy/jieba">
         jieba分词
        </a>
        提供的基于TextRank的关键词提取工具。
        <a href="https://github.com/isnowfy/snownlp">
         snownlp
        </a>
        也实现了关键词提取和摘要生成。
       </p>
       <p>
       </p>
       <p>
        文章出处：
        <a href="http://www.letiantian.me/2014-12-01-text-rank/">
         http://www.letiantian.me/2014-12-01-text-rank/
        </a>
       </p>
      </div>
      <div>
       <strong>
        注：转载文章均来自于公开网络，仅供学习使用，不会用于任何商业用途，如果侵犯到原作者的权益，请您与我们联系删除或者授权事宜，联系邮箱：contact@dataunion.org。转载数盟网站文章请注明原文章作者，否则产生的任何版权纠纷与数盟无关。
       </strong>
      </div>
      <!--content_text-->
      <div class="fenxian">
       <!-- JiaThis Button BEGIN -->
       <div class="jiathis_style_32x32">
        <p class="jiathis_button_weixin">
        </p>
        <p class="jiathis_button_tsina">
        </p>
        <p class="jiathis_button_qzone">
        </p>
        <p class="jiathis_button_cqq">
        </p>
        <p class="jiathis_button_tumblr">
        </p>
        <a class="jiathis jiathis_txt jtico jtico_jiathis" href="http://www.jiathis.com/share" target="_blank">
        </a>
        <p class="jiathis_counter_style">
        </p>
       </div>
       <!-- JiaThis Button END -->
      </div>
     </article>
     <!--content-->
     <!--相关文章-->
     <div class="xianguan">
      <div class="xianguantitle">
       相关文章！
      </div>
      <ul class="pic">
       <li>
        <a href="http://dataunion.org/24687.html">
         <img src="http://dataunion.org/wp-content/uploads/2016/06/u16130037972892789947fm21gp0-300x157.jpg"/>
        </a>
        <a class="link" href="http://dataunion.org/24687.html" rel="bookmark" title="从0开始学习 GitHub 系列之「Git 进阶」">
         从0开始学习 GitHub 系列之「Git 进阶」
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/24672.html">
         <img src="http://dataunion.org/wp-content/uploads/2016/06/201407171112-300x172.png"/>
        </a>
        <a class="link" href="http://dataunion.org/24672.html" rel="bookmark" title="为什么说Spark SQL远远超越了MPP SQL">
         为什么说Spark SQL远远超越了MPP SQL
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/24663.html">
         <img src="http://dataunion.org/wp-content/uploads/2016/06/095356be8cb4z9ke9389kd-204x200.jpeg"/>
        </a>
        <a class="link" href="http://dataunion.org/24663.html" rel="bookmark" title="人工智能界最强大脑畅谈AI未来之路">
         人工智能界最强大脑畅谈AI未来之路
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/24652.html">
         <img src="http://dataunion.org/wp-content/uploads/2016/02/20150522141422337-265x200.jpg"/>
        </a>
        <a class="link" href="http://dataunion.org/24652.html" rel="bookmark" title="重磅 | MIT与谷歌专家合著论文：机器学习和神经科学的相互启发与融合（附论文）">
         重磅 | MIT与谷歌专家合著论文：机器学习和神经科学的相互启发与融合（附论文）
        </a>
       </li>
      </ul>
     </div>
     <!--相关文章-->
     <div class="comment" id="comments">
      <!-- You can start editing here. -->
      <!-- If comments are open, but there are no comments. -->
      <div class="title">
       期待你一针见血的评论，Come on！
      </div>
      <div id="respond">
       <p>
        不用想啦，马上
        <a href="http://dataunion.org/wp-login.php?redirect_to=http%3A%2F%2Fdataunion.org%2F8448.html">
         "登录"
        </a>
        发表自已的想法.
       </p>
      </div>
     </div>
     <!-- .nav-single -->
    </div>
    <!--Container End-->
    <aside id="sitebar">
     <div class="sitebar_list2">
      <div class="wptag">
       <span class="tagtitle">
        热门标签+
       </span>
       <div class="tagg">
        <ul class="menu" id="menu-%e5%8f%8b%e6%83%85%e9%93%be%e6%8e%a5">
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1605" id="menu-item-1605">
          <a href="http://taidizh.com/">
           泰迪智慧
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-20884" id="menu-item-20884">
          <a href="http://www.transwarp.cn/">
           星环科技
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-3538" id="menu-item-3538">
          <a href="http://datall.org/">
           珈和遥感
          </a>
         </li>
         <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-20888" id="menu-item-20888">
          <a href="http://www.chinahadoop.cn/">
           小象学院
          </a>
         </li>
        </ul>
       </div>
      </div>
     </div>
     <div class="sitebar_list">
      <div class="textwidget">
       <div align="center">
        <a href="http://study.163.com/course/courseMain.htm?courseId=991022" target="_blank">
         <img src="http://dataunion.org/wp-content/uploads/2016/03/dv.jpg"/>
        </a>
       </div>
      </div>
     </div>
     <div class="sitebar_list">
      <h4 class="sitebar_title">
       文章分类
      </h4>
      <div class="tagcloud">
       <a class="tag-link-44" href="http://dataunion.org/category/industry/demo" style="font-size: 10.204724409449pt;" title="4个话题">
        Demo展示
       </a>
       <a class="tag-link-31" href="http://dataunion.org/category/experts" style="font-size: 15.826771653543pt;" title="52个话题">
        专家团队
       </a>
       <a class="tag-link-870" href="http://dataunion.org/category/tech/ai" style="font-size: 19.795275590551pt;" title="273个话题">
        人工智能
       </a>
       <a class="tag-link-488" href="http://dataunion.org/category/%e5%8a%a0%e5%85%a5%e6%95%b0%e7%9b%9f" style="font-size: 8pt;" title="1个话题">
        加入数盟
       </a>
       <a class="tag-link-869" href="http://dataunion.org/category/tech/viz" style="font-size: 17.204724409449pt;" title="93个话题">
        可视化
       </a>
       <a class="tag-link-30" href="http://dataunion.org/category/partners" style="font-size: 10.645669291339pt;" title="5个话题">
        合作伙伴
       </a>
       <a class="tag-link-889" href="http://dataunion.org/category/parterc" style="font-size: 11.582677165354pt;" title="8个话题">
        合作会议
       </a>
       <a class="tag-link-104" href="http://dataunion.org/category/books" style="font-size: 12.96062992126pt;" title="15个话题">
        图书
       </a>
       <a class="tag-link-220" href="http://dataunion.org/category/tech/base" style="font-size: 19.850393700787pt;" title="281个话题">
        基础架构
       </a>
       <a class="tag-link-219" href="http://dataunion.org/category/tech/analysis" style="font-size: 19.409448818898pt;" title="232个话题">
        数据分析
       </a>
       <a class="tag-link-887" href="http://dataunion.org/category/tech/dm" style="font-size: 13.291338582677pt;" title="17个话题">
        数据挖掘
       </a>
       <a class="tag-link-34" href="http://dataunion.org/category/tech" style="font-size: 20.732283464567pt;" title="404个话题">
        文章
       </a>
       <a class="tag-link-1" href="http://dataunion.org/category/uncategorized" style="font-size: 22pt;" title="693个话题">
        未分类
       </a>
       <a class="tag-link-4" href="http://dataunion.org/category/events" style="font-size: 14.503937007874pt;" title="29个话题">
        活动
       </a>
       <a class="tag-link-890" href="http://dataunion.org/category/tech/%e6%b7%b1%e5%ba%a6%e5%ad%a6%e4%b9%a0" style="font-size: 10.204724409449pt;" title="4个话题">
        深度学习
       </a>
       <a class="tag-link-221" href="http://dataunion.org/category/tech/devl" style="font-size: 18.968503937008pt;" title="193个话题">
        编程语言
       </a>
       <a class="tag-link-888" href="http://dataunion.org/category/career" style="font-size: 15.661417322835pt;" title="48个话题">
        职业规划
       </a>
       <a class="tag-link-5" href="http://dataunion.org/category/jobs" style="font-size: 14.11811023622pt;" title="25个话题">
        职位
       </a>
       <a class="tag-link-871" href="http://dataunion.org/category/industry" style="font-size: 15.716535433071pt;" title="49个话题">
        行业
       </a>
       <a class="tag-link-613" href="http://dataunion.org/category/industry/case" style="font-size: 16.984251968504pt;" title="84个话题">
        行业应用
       </a>
       <a class="tag-link-885" href="http://dataunion.org/category/industry/news" style="font-size: 17.425196850394pt;" title="102个话题">
        行业资讯
       </a>
       <a class="tag-link-10" href="http://dataunion.org/category/training" style="font-size: 14.228346456693pt;" title="26个话题">
        课程
       </a>
       <a class="tag-link-16" href="http://dataunion.org/category/sources" style="font-size: 15.661417322835pt;" title="48个话题">
        资源
       </a>
      </div>
     </div>
     <div class="sitebar_list">
      <h4 class="sitebar_title">
       功能
      </h4>
      <ul>
       <li>
        <a href="http://dataunion.org/wp-login.php?action=register">
         注册
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/wp-login.php">
         登录
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/feed">
         文章
         <abbr title="Really Simple Syndication">
          RSS
         </abbr>
        </a>
       </li>
       <li>
        <a href="http://dataunion.org/comments/feed">
         评论
         <abbr title="Really Simple Syndication">
          RSS
         </abbr>
        </a>
       </li>
       <li>
        <a href="https://cn.wordpress.org/" title="基于WordPress，一个优美、先进的个人信息发布平台。">
         WordPress.org
        </a>
       </li>
      </ul>
     </div>
    </aside>
    <div class="clear">
    </div>
   </div>
   <!--main-->
   ﻿
   <footer id="dibu">
    <div class="about">
     <div class="right">
      <ul class="menu" id="menu-%e5%ba%95%e9%83%a8%e8%8f%9c%e5%8d%95">
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-18024" id="menu-item-18024">
        <a href="http://dataunion.org/category/partners">
         合作伙伴
        </a>
       </li>
       <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20881" id="menu-item-20881">
        <a href="http://dataunion.org/contribute">
         文章投稿
        </a>
       </li>
       <li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-20872" id="menu-item-20872">
        <a href="http://dataunion.org/category/%e5%8a%a0%e5%85%a5%e6%95%b0%e7%9b%9f">
         加入数盟
        </a>
       </li>
       <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-22441" id="menu-item-22441">
        <a href="http://dataunion.org/f-links">
         友情链接
        </a>
       </li>
       <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-20874" id="menu-item-20874">
        <a href="http://dataunion.org/aboutus">
         关于数盟
        </a>
       </li>
      </ul>
      <p class="banquan">
       数盟社区        ，
        做最棒的数据科学社区
      </p>
     </div>
     <div class="left">
      <ul class="bottomlist">
       <li>
        <a href="http://weibo.com/DataScientistUnion  " target="_blank" 　title="">
         <img src="http://dataunion.org/wp-content/themes/yzipi/images/weibo.png"/>
        </a>
       </li>
       <li>
        <a class="cd-popup-trigger" href="http://dataunion.org/8448.html#0">
         <img src="http://dataunion.org/wp-content/themes/yzipi/images/weixin.png"/>
        </a>
       </li>
      </ul>
      <div class="cd-popup">
       <div class="cd-popup-container">
        <h1>
         扫描二维码,加微信公众号
        </h1>
        <img src="http://dataunion.org/wp-content/themes/yzipi/images/2014-12-06-1515289049.png"/>
        <a class="cd-popup-close" href="http://dataunion.org/8448.html">
        </a>
       </div>
       <!-- cd-popup-container -->
      </div>
      <!-- cd-popup -->
     </div>
    </div>
    <!--about-->
    <div class="bottom">
     <a href="http://dataunion.org/">
      数盟社区
     </a>
     <a href="http://www.miitbeian.gov.cn/" rel="external nofollow" target="_blank">
      京ICP备14026740号
     </a>
     联系我们：
     <a href="mailto:contact@dataunion.org" target="_blank">
      contact@dataunion.org
     </a>
     <div class="tongji">
     </div>
     <!--bottom-->
     <div class="scroll" id="scroll" style="display:none;">
      ︿
     </div>
    </div>
   </footer>
   <!--dibu-->
  </div>
 </body>
</html>